# -*- coding: utf-8 -*-
from __future__ import unicode_literals

from django.db import models, migrations


class Migration(migrations.Migration):

    dependencies = [
        ('accounts', '0001_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='AgentInstitution',
            fields=[
                ('id', models.AutoField(serialize=False, primary_key=True, verbose_name='ID', auto_created=True)),
                ('name', models.CharField(verbose_name='公司名称', max_length=100)),
                ('address', models.CharField(verbose_name='公司地址', max_length=300)),
                ('code', models.CharField(blank=True, verbose_name='公司营业编号', null=True, max_length=50)),
                ('licence_pic', models.ImageField(verbose_name='公司执照', upload_to='institution')),
                ('legal_person', models.CharField(verbose_name='公司法人', max_length=20)),
                ('telephone', models.CharField(verbose_name='联系电话', max_length=100)),
                ('email', models.CharField(verbose_name='公司邮箱', max_length=100)),
                ('info', models.TextField(verbose_name='公司简介', max_length=4000)),
            ],
        ),
        migrations.AddField(
            model_name='user',
            name='head_pic',
            field=models.ImageField(verbose_name='头像', upload_to='images', null=True),
        ),
        migrations.AddField(
            model_name='user',
            name='mobile_phone',
            field=models.PositiveIntegerField(blank=True, default=0, null=True, verbose_name='手机号'),
        ),
        migrations.AddField(
            model_name='user',
            name='nick_name',
            field=models.CharField(blank=True, verbose_name='昵称', null=True, max_length=100),
        ),
        migrations.AddField(
            model_name='user',
            name='sex',
            field=models.CharField(default=1, verbose_name='姓别', max_length=1, choices=[(1, '男'), (0, '女')]),
        ),
        migrations.AddField(
            model_name='user',
            name='telephone',
            field=models.CharField(blank=True, verbose_name='电话', null=True, max_length=20),
        ),
        migrations.AddField(
            model_name='user',
            name='agent_institution',
            field=models.ForeignKey(null=True, to='accounts.AgentInstitution'),
        ),
    ]
